//
//  sportViewController.m
//  spotrs
//
//  Created by xu on 16/5/11.
//  Copyright © 2016年 TZ. All rights reserved.
//

#import "sportViewController.h"
@interface sportViewController ()
{
    UIView *topBackview;
    UIButton *quanZiBtn;
    UIButton *reMenBtn;
}
@end

@implementation sportViewController
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [MyAppDelegate.tabBarController setTabBarHidden:NO animated:NO];
}
- (void)viewDidLoad {
    self.isHiddenNavagitiong = NO;
    [super viewDidLoad];
    topBackview = [[UIView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, navagationgHright)];
    [topBackview setBackgroundColor:RGBCOLOR(4, 63, 8)];
    [self.view addSubview:topBackview];
    
    quanZiBtn = [[UIButton alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/2, 28, 50, 25)];
    quanZiBtn.layer.borderWidth = 1;
    [quanZiBtn setTitleColor:RGBCOLOR(4, 63, 8 ) forState:UIControlStateSelected];
    [quanZiBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
   
    quanZiBtn.titleLabel.font = ziTiSize(14);
    quanZiBtn.layer.masksToBounds = YES;
    quanZiBtn.layer.cornerRadius = 2;
    quanZiBtn.layer.borderColor = [UIColor whiteColor].CGColor;
    [quanZiBtn setTitle:@"圈子" forState:UIControlStateNormal];
    [topBackview addSubview:quanZiBtn];
    
    reMenBtn = [[UIButton alloc] initWithFrame:CGRectMake(SCREEN_WIDTH/2-50, 28, 50,25)];
    reMenBtn.layer.borderWidth = 1;
    reMenBtn.layer.masksToBounds = YES;
    [reMenBtn setSelected:YES];
    reMenBtn.titleLabel.font = ziTiSize(14);
    [reMenBtn setTitleColor:RGBCOLOR(4, 63, 8 ) forState:UIControlStateSelected];
     [reMenBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [reMenBtn setBackgroundColor:[UIColor whiteColor]];
    reMenBtn.layer.cornerRadius = 2;
    reMenBtn.layer.borderColor = [UIColor whiteColor].CGColor;
    [reMenBtn setTitle:@"热门" forState:UIControlStateNormal];
    [topBackview addSubview:reMenBtn];
    
 
}
-(void)btnClick
{
   
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
